ODAC

TOraTransaction Members

TOraTransaction class overview.

Properties

Name Description

Active

Used to indicate whether the transaction is active or not.

BranchQualifiers

Used to represent branch qualifier part of XID for transaction branches.

DefaultCloseAction (inherited from TDATransaction)

Used to specify the transaction behaviour when it is destroyed while being active, or when one of its connections is closed with the active transaction.

DefaultSession

Used to specify the session for performing the transaction.

GlobalCoordinator

Used to determine with what distributed transaction, perform two-phase commit or rollback on all sessions will be coordinated.

InactiveTimeOut

Used to specify the waiting time before deleting inactive transaction branch.

IsolationLevel

Used to specify how the transactions containing database modifications are handled.

ResumeTimeOut

Used to set the wait time to resume the transaction branch if it is used by another session.

Sessions

Used to specify a session for the given index.

SessionsCount

Used to provide the number of sessions associated with the transaction component.

TransactionId

Used to represent global transaction identifier.

TransactionName

Used to assign a name to the current transaction.

Methods

Name Description

AddSession

Overloaded. Associates a TOraSession component with the transaction component.

ClearSessions

Disassociates the transaction component from all its session components.

Commit (inherited from TDATransaction)

Commits the current transaction.

Detach

Deactivates a transaction.

RemoveSession

Disassociates the specified session from the transaction.

Resume

Resumes a detached transaction.

Rollback (inherited from TDATransaction)

Discards all modifications of data associated with the current transaction and ends the transaction.

RollbackToSavepoint

Discards all modifications made during the current transaction and restores its state to the moment of the savepoint.

Savepoint

Defines a savepoint in the transaction.

StartTransaction

Overloaded. Begins a new user transaction against the database server.

Events

Name Description

OnCommit (inherited from TDATransaction)

Occurs after the transaction has been successfully committed.

OnCommitRetaining (inherited from TDATransaction)

Occurs after CommitRetaining has been executed.

OnError

Occurs for processing errors that can be arised during executing transaction and savepoint control statements such as COMMIT, ROLLBACK, SAVEPOINT, RELEASE SAVEPOINT and others.

OnRollback (inherited from TDATransaction)

Occurs after the transaction has been successfully rolled back.

OnRollbackRetaining (inherited from TDATransaction)

Occurs after RollbackRetaining has been executed.
© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback